Fraction with repeated factors